<?php
/**
 * Author: Jesse
 * Email : jessedev@163.com
 * Date: 2024/6/17 14:02
 * FileName: ResponseCode.php
 * DESC: The Relentless Pursuit of Perfection.
 */

namespace Common\Constants;

use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;

#[Constants]
enum ResponseCode
{
    use EnumConstantsTrait;

    #[Message('请求成功')]
    public const SUCCESS = 0;

    #[Message('服务器繁忙，请稍后重试！')]
    public const ERROR = 50000;

    #[Message('服务器繁忙，请稍后重试！')]
    public const RPC_ERROR = 50001;
}
